<!DOCTYPE html>
<html lang="en">
  <head>
    <meta charset="UTF-8" />
    <meta http-equiv="X-UA-Compatible" content="IE=edge" />
    <meta name="viewport" content="width=device-width, initial-scale=1.0" />
    <title>Document</title>
  </head>
  <body>
    <div id="app">
      <h1>波仔学习之旅</h1>
      <button v-if="activeIndex > 0" @click="activeIndex--">上一页</button>
      <img v-bind:src="imgList[activeIndex]" />
      <button v-if="activeIndex < imgList.length - 1" @click="activeIndex++">
        下一页
      </button>
    </div>

    <script src="https://cdn.jsdelivr.net/npm/vue@2/dist/vue.js"></script>
    <script>
      const app = new Vue({
        el: "#app",
        data: {
          activeIndex: 0,
          imgList: [
            "./imgs/11-00.gif",
            "./imgs/11-01.gif",
            "./imgs/11-02.gif",
            "./imgs/11-03.gif",
            "./imgs/10-02.png",
            "./imgs/11-05.png",
          ],
        },
        methods: {},
      });
    </script>
  </body>
</html>
